﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Hohlios.TMDBWrapper.DotNet.Model
{
    [DataContract]
    public class Movie
    {
        [DataMember(Name = "score")]
        public double? Score { get; set; }

        [DataMember(Name = "popularity")]
        public double Popularity { get; set; }

        [DataMember(Name = "translated")]
        public bool Translated { get; set; }

        [DataMember(Name = "language")]
        public string Language { get; set; }

        [DataMember(Name = "original_name")]
        public string OriginalName { get; set; }

        [DataMember(Name = "name")]
        public string Name { get; set; }

        [DataMember(Name = "alternative_name")]
        public string AlternativeName { get; set; }

        [DataMember(Name = "movie_type")]
        public string Type { get; set; }

        [DataMember(Name = "id")]
        public int Id { get; set; }

        [DataMember(Name = "imdb_id")]
        public string ImdbId { get; set; }

        [DataMember(Name = "url")]
        public string Url { get; set; }

        [DataMember(Name = "votes")]
        public int Votes { get; set; }

        [DataMember(Name = "rating")]
        public double Rating { get; set; }

        [DataMember(Name = "certification")]
        public string Certification { get; set; }

        [DataMember(Name = "overview")]
        public string Overview { get; set; }

        [DataMember(Name = "released")]
        public string Released { get; set; }

        [DataMember(Name = "posters")]
        public IEnumerable<Image> Posters { get; set; }
        
        [DataMember(Name = "backdrops")]
        public IEnumerable<Image> Backdrops { get; set; }

        [DataMember(Name = "version")]
        public string Version { get; set; }

        [DataMember(Name = "last_modified_at")]
        public string LastModified { get; set; }
    }
}
